<?php /* Smarty version Smarty-3.1.18, created on 2015-05-22 11:44:28
         compiled from "/data/www/mystery/protected/modules/webadmin/views/question/set_select.tpl" */ ?>
<?php /*%%SmartyHeaderCode:54784865054d1e05e0b6b73-91147111%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '200625d690c90e4e1a179e67bb8a65a6fce77453' => 
    array (
      0 => '/data/www/mystery/protected/modules/webadmin/views/question/set_select.tpl',
      1 => 1432055444,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '54784865054d1e05e0b6b73-91147111',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_54d1e05e1942e9_72131766',
  'variables' => 
  array (
    'subjectOne' => 0,
    'questionId' => 0,
    'typeId' => 0,
    'questionType' => 0,
    'key' => 0,
    'ls' => 0,
    'classify' => 0,
    'val' => 0,
    'templateEn' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_54d1e05e1942e9_72131766')) {function content_54d1e05e1942e9_72131766($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("../common/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<style>
    td .tdRightCss{
        text-align: right;
    }
</style>
<table width="100%" border="0" cellspacing="0">
    <tr>
        <td width="13%" valign="top">
            <?php echo $_smarty_tpl->getSubTemplate ("../common/left.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

        </td>
        <td width="87%" valign="top"><table width="100%" border="0" cellspacing="0">
                <tr>
                    <td>
                        <form id="subject_form" method="" action="">
                            <div class="subnav">
                                <div class="content-menu ib-a blue line-x"> <a href="/webadmin/question/set" class="on"><em>问卷内容设置</em></a><span>|</span> 是否基本信息：
                                    <select name="is_basic">
                                        <option value="">请选择</option>
                                        <option <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['is_basic']==1) {?>selected="selected"<?php }?> value="1">是</option>
                                        <option <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value&&$_smarty_tpl->tpl_vars['subjectOne']->value['is_basic']==0) {?>selected="selected"<?php }?> value="0">否</option>
                                    </select>
                                    &nbsp;&nbsp;&nbsp;&nbsp;
                                    <input type="hidden" name="subject_id" value="<?php echo $_smarty_tpl->tpl_vars['subjectOne']->value['subject_id'];?>
"/>
                                    <input type="hidden" name="question_id" value="<?php echo $_smarty_tpl->tpl_vars['questionId']->value;?>
"/>
                                    <input type="hidden" name="type_id" value="<?php echo $_smarty_tpl->tpl_vars['typeId']->value;?>
"/>
                                    题目类型：
                                    <select name="question_type">
                                        <?php  $_smarty_tpl->tpl_vars['ls'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ls']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['questionType']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['ls']->key => $_smarty_tpl->tpl_vars['ls']->value) {
$_smarty_tpl->tpl_vars['ls']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['ls']->key;
?>
                                        <option <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['question_type']==$_smarty_tpl->tpl_vars['key']->value) {?>selected="selected"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['typeId']->value==$_smarty_tpl->tpl_vars['key']->value) {?>selected="selected"<?php }?> >--<?php echo $_smarty_tpl->tpl_vars['ls']->value['title'];?>
--</option>
                                        <?php } ?>
                                    </select>
                                </div>
                            </div>

                            <div class="wjtx">							
                                <table id="select_table" width="100%" style="margin:0px;"  bgcolor="#eef3f7">
                                    <tbody>
                                        <tr>
                                            <td width="13%" height="60" class="tdRightCss">
                                                层级结构（一级指标）：  	</td>	
                                            <td width="19%">
                                                <select id="one" name="one_classify_id" style="width:90%">
                                                    <option value="0">-请选择-</option>
                                                    <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['classify']->value['list'][1]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
                                                    <option <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['one'][$_smarty_tpl->tpl_vars['val']->value]) {?>selected="selected"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['val']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['classify']->value['all'][$_smarty_tpl->tpl_vars['val']->value];?>
</option>
                                                    <?php } ?>
                                                </select>
                                            </td>
                                            <td width="11%">
                                                <a href="javascript:void(0);" data-norm='one' name="classify_add">添加归类</a>
                                                &nbsp;|&nbsp;
                                                <a href="javascript:void(0);" data-delnorm='one' name="classify_delete">删除归类</a>
                                            </td>
                                            <td colspan="5" id="one_classify_add_td" style="display:none;">
                                                <input name="classify_name" id="one_classify_name" value="" style="width:70%" class="inputTextLine">
                                                <input class="button" type="button" data-norm='one' name="classify_add_sub" value="添加">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="13%" height="60" class="tdRightCss">
                                                层级结构（二级指标）：  	</td>	
                                            <td width="19%">
                                                <select id="two" name="two_classify_id" style="width:90%">
                                                    <option value="0">-请选择-</option>
                                                    <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['classify']->value['list'][2]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
                                                    <option <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['two'][$_smarty_tpl->tpl_vars['val']->value]) {?>selected="selected"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['val']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['classify']->value['all'][$_smarty_tpl->tpl_vars['val']->value];?>
</option>
                                                    <?php } ?>
                                                </select>
                                            </td>
                                            <td width="11%">
                                                <a href="javascript:void(0);" data-norm='two' name="classify_add">添加归类</a>
                                                &nbsp;|&nbsp;
                                                <a href="javascript:void(0);" data-delnorm='two' name="classify_delete">删除归类</a>
                                            </td>
                                            <td colspan="5" id="two_classify_add_td" style="display:none;">
                                                <input name="classify_name" id="two_classify_name" value="" style="width:70%" class="inputTextLine">
                                                <input class="button" type="button" data-norm='two' name="classify_add_sub" value="添加">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="13%" height="60" class="tdRightCss">
                                                层级结构（三级指标）：  	</td>	
                                            <td width="19%">
                                                <select id="three" name="three_classify_id" style="width:90%">
                                                    <option value="0">-请选择-</option>
                                                    <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['classify']->value['list'][3]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
                                                    <option <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['three'][$_smarty_tpl->tpl_vars['val']->value]) {?>selected="selected"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['val']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['classify']->value['all'][$_smarty_tpl->tpl_vars['val']->value];?>
</option>
                                                    <?php } ?>
                                                </select>
                                            </td>
                                            <td width="11%">
                                                <a href="javascript:void(0);" data-norm='three' name="classify_add">添加归类</a>
                                                &nbsp;|&nbsp;
                                                <a href="javascript:void(0);" data-delnorm='three' name="classify_delete">删除归类</a>
                                            </td>
                                            <td colspan="5" id="three_classify_add_td" style="display:none;">
                                                <input name="classify_name" id="three_classify_name" value="" style="width:70%" class="inputTextLine">
                                                <input class="button" type="button" data-norm='three' name="classify_add_sub" value="添加">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="10%" nowrap="" class="tdRightCss">
                                                题目编号：    </td>
                                            <td width="10%">
                                                <input name="question_num" id="no" value="<?php echo $_smarty_tpl->tpl_vars['subjectOne']->value['question_num'];?>
" class="inputTextLine">    </td>

                                            <td width="10%" nowrap="" class="tdRightCss">
                                                题目名称：    </td>
                                            <td width="40%">
                                                <input name="title" id="title" value="<?php echo $_smarty_tpl->tpl_vars['subjectOne']->value['title'];?>
" style="width: 98%;" class="inputTextLine">    </td>

                                        </tr>
                                        <tr>
                                            <td width="10%" nowrap="" class="tdRightCss">
                                                选择题类型：    </td>
                                            <td width="20%">
                                                <select name="question_type_sub" id="question_type_sub" style="width: 70%">
                                                    <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['templateEn']->value['cate']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
                                                    <option <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['question_type_sub']==$_smarty_tpl->tpl_vars['key']->value) {?>selected="selected"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['val']->value;?>
</option>
                                                    <?php } ?>
                                                </select>
                                            </td>
                                            <td class="tdRightCss">
                                                题目描述：  	</td>
                                            <td>
                                                <textarea style="width: 90%;height:40px;font-size:12px;line-height: 16px;resize:none;" name="content" id="cue"><?php echo $_smarty_tpl->tpl_vars['subjectOne']->value['content'];?>
</textarea>
                                            </td>

                                        </tr>
                                        <tr>
                                            <!--<td class="tdRightCss">是否必填：</td>
                                            <td>
                                                <input type="checkbox" <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['extend']['is_required']) {?>checked="checked"<?php }?> value="1" id="is_required" name="is_required">  	
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                是否有其他：<input type="checkbox" <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['extend']['is_required']) {?>checked="checked"<?php }?> value="1" id="is_other" name="is_other"> 
                                            </td>-->

                                            <td width="9%" class="tdRightCss" id="standard_score_name" <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['is_basic']) {?>style="display:none;"<?php }?>>
                                                标准得分：  	</td>
                                            <td id="standard_score" <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['is_basic']) {?>style="display:none;"<?php }?>>
                                                <input name="standard_score" value="<?php echo $_smarty_tpl->tpl_vars['subjectOne']->value['standard_score'];?>
" style="width:90%" class="inputTextLine">
                                            </td>
                                        </tr>
                                        <!--<tr>
                                            <td class="tdRightCss">
                                                是否关联题目：
                                            </td>
                                            <td>
                                                <input type="checkbox" <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['extend']['is_relation']) {?>checked="checked"<?php }?> value="1" id="is_relation" name="is_relation">  	
                                            </td>
                                            <td id="relation" class="tdRightCss" style="display:none;">
                                                关联题目编号：
                                            </td>
                                            <td id="relation_num" style="display:none;">
                                                <input name="relation_num" value="<?php echo $_smarty_tpl->tpl_vars['subjectOne']->value['extend']['relation_num'];?>
" style="width:90%" class="inputTextLine" title="规则是字母或者字母加数字，例如：C 表示整个体面编号以C开头的题目，B1,B2b表示B1和B2两个题目">
                                            </td>
                                        </tr>-->
                                        <tr style="font-size: 13px;font-weight:bold;">
                                            <td colspan="5" style="text-align: left;padding-left: 5px;">添加选项</td>
                                            <td style="text-align:left;padding-left:5px;"><img border="0" src="/images/edit_add.png" class="addTr" title="点击添加" style="cursor:pointer;"></td>
                                        </tr>
                                        <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['option']) {?>
                                        <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['subjectOne']->value['option']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
                                        <tr style="font-size: 13px;font-weight:bold;" name="addtr_name">
                                            <td style="text-align: right;padding-right: 5px;">键名称：</td>
                                            <td style="text-align: left;padding-left: 5px;"><input type="text" value="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" class="inputTextLine" name="keys[]"></td>
                                            <td style="text-align:right;padding-right:5px;">值内容：</td>
                                            <td style="text-align:left;padding-left:5px;"><input type="text" value="<?php echo $_smarty_tpl->tpl_vars['val']->value;?>
" class="inputTextLine" name="values[]"></td>
                                            <td></td>
                                            <td style="text-align:left;padding-left:5px;"><img border="0" onclick="(function (t) {
                                                                                                            $(t).closest('tr').remove();
                                                                                                        })(this)" style="cursor:pointer;" title="点击删除" class="delTr hand" src="/images/edit_remove.png"></td>
                                        </tr>
                                        <?php } ?>
                                        <?php }?>
                                    </tbody></table>
                            </div>
                            <table width="100%" border="0" cellspacing="0">
                                <tr>
                                    <td height="67" align="center"><input type="submit" id="submit_fill" value="保存" class="button" name="dosubmit2"></td>
                                </tr>
                            </table>
                        </form>
                        <?php echo $_smarty_tpl->getSubTemplate ("./set_common.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

                    </td>
                </tr>
            </table></td>
    </tr>
</table>
<table id="hidden_tr" style="display:none">
    <tr name="addtr_name" style="font-size: 13px;font-weight:bold;">
        <td style="text-align: right;padding-right: 5px;">键名称：</td>
        <td style="text-align: left;padding-left: 5px;"><input type="text" name="keys[]" class="inputTextLine"/></td>
        <td style="text-align:right;padding-right:5px;">值内容：</td>
        <td style="text-align:left;padding-left:5px;"><input type="text" name="values[]" class="inputTextLine"/></td>
        <td></td>
        <td style="text-align:left;padding-left:5px;"><img border="0" src="/images/edit_remove.png" class="delTr hand" title="点击删除" style="cursor:pointer;" onclick="(function (t) {
                            $(t).closest('tr').remove();
                        })(this)"></td>
    </tr>
</table>
<?php echo $_smarty_tpl->getSubTemplate ("./set_common_js.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("../common/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
